<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class StaffOpenid
 * @package App\Models
 * @version December 6, 2018, 2:53 pm CST
 *
 * @property integer uid
 * @property string openid
 * @property string nickname
 * @property string avatar
 * @property boolean gender
 * @property string country
 * @property string province
 * @property string city
 */
class StaffOpenid extends Model
{
    use SoftDeletes;

    public $table = 'staff_openid';
    
    const CREATED_AT = 'created_at';
    const UPDATED_AT = 'updated_at';


    protected $dates = ['deleted_at'];


    public $fillable = [
        'uid',
        'openid',
        'nickname',
        'avatar',
        'gender',
        'country',
        'province',
        'city'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'id' => 'integer',
        'uid' => 'integer',
        'openid' => 'string',
        'nickname' => 'string',
        'avatar' => 'string',
        'gender' => 'integer',
        'country' => 'string',
        'province' => 'string',
        'city' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [

    ];
    
}
